//
//  QuDanSquareNetWork.m
//  QuDanOEM
//
//  Created by mac on 2021/11/16.
//

#import "QuDanSquareNetWork.h"

@implementation QuDanSquareNetWork

/// 推荐数据
- (void)requestSquareRecommendOrAttention:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block
{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/dynamic/list" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowLoading)]  block:block];
}
//关注和取消关注
- (void)requestSquareFllowOrCancel:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block
{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/member/follow" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowLoading)]  block:block];
}
// 点赞用户
- (void)requestSquareFollowTNetWork:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block
{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/dynamic/follow" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowLoading)]  block:block];
}
// 取消点赞
- (void)requestSquareUnFollowNetWork:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block
{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/dynamic/cancel" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowLoading)]  block:block];
}
@end
